/**
 * 
 */
package org.cuatrovientos.ejerciciomenu;

import java.util.Random;

/**
 * @author PC
 *
 */
public class EjercicioMenu {

	/**
	 * @param args
	 */
	
	public static void showArray(int[] numbers){
		for (int i = 0;i < numbers.length;i++){
			System.out.println(numbers[i]);
		}
	}
	public static void initRandom(int[] numbers){
		for (int i = 0;i<numbers.length;i++){
		Random random = new Random();
		numbers[i] = random.nextInt(101) - 50;
		}
	}
	public static int[] getPositives(int[] numbers) {
		int [] positiveNumbers = new int[10];
		int j = 0;
		for (int i = 0;i<numbers.length;i++){
			if (numbers[i] >=0){
				positiveNumbers[j] = numbers[i];
				j = j + 1;
			}
		}
		return positiveNumbers[];
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
